cmake_minimum_required(VERSION 2.8)
project(ftrigger_server CXX)

find_package(Boost COMPONENTS system thread program_options REQUIRED)
link_directories(${Boost_LIBRARY_DIRS})
include_directories(${Boost_INCLUDE_DIRS})

add_definitions(-DDEBUG_MODE=1)

include_directories(includes)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic -ggdb3 -std=c++0x")
set(SRCS
    main.cpp
    actions.cpp
    FtServer.cpp
    TcpConnection.cpp
    )

add_executable(${PROJECT_NAME} ${SRCS})
target_link_libraries (${PROJECT_NAME} ${Boost_LIBRARIES} pthread)
